<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">年份</td><td id="year" class="tv"></td><td class="tt">工程名称</td><td id="name" class="tv"></td></tr>
                <tr><td class="tt">工程发布平台</td><td id="type" class="tv"></td><td class="tt">业主方</td><td id="jian_unit" class="tv"></td></tr>
                <tr><td class="tt">工程金额(元)</td><td id="money" class="tv"></td><td class="tt">工程所在地</td><td id="addr" class="tv"></td></tr>
                <tr><td class="tt">开工时间</td><td id="start_dt" class="tv"></td><td class="tt">竣工时间</td><td id="end_dt" class="tv"></td></tr>
                <tr><td class="tt">工程说明</td><td id="explain" colspan="3" class="tv"></td></tr>
                <tr><td class="tt">项目经理</td><td id="jingcert_name" class="tv colorlan"></td><td class="tt">技术负责人</td><td id="shucert_name" class="tv colorlan"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>


        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_achieve_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data;
                $('#year').text(data.year);
                $('#name').text(data.name);
                $('#type').text(data.type);
                $('#addr').text(data.addr);
                $('#money').text(data.money);
                $('#start_dt').text(data.start_dt);
                $('#end_dt').text(data.end_dt);
                $('#explain').text(data.explain);
                $('#jian_unit').text(data.jian_unit);


                if(data.jingcert_info){
                    $("#jingcert_name").text(data.jingcert_info.personname+'('+data.jingcert_info.name+')').click(function () {
                        openPage('../cert/show.php?id='+data.jingcert);
                    });
                }
                if(data.shucert_info){
                    $("#shucert_name").text(data.shucert_info.personname+'('+data.shucert_info.name+')').click(function () {
                        openPage('../cert/show.php?id='+data.shucert);
                    });
                }



                // $(".pageshowtitle").text('业绩');
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('achieve', param_id);
        showpage_dropopt();
    });



</script>
</body>
</html>




